package com.knowif.pojo;

import javax.validation.constraints.NotEmpty;

import org.springframework.validation.annotation.Validated;

@Validated
public class Topic {
	
    private Integer id;

    private Integer dealNum;

    @NotEmpty(message = "约见金额不能为空")
    private Double meetPrice;

    @NotEmpty(message = "话题名字不能为空")
    private String topicName;

    private Integer userId;

    @NotEmpty(message = "语音金额不能为空")
    private Double voicePrice;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDealNum() {
        return dealNum;
    }

    public void setDealNum(Integer dealNum) {
        this.dealNum = dealNum;
    }

    public Double getMeetPrice() {
        return meetPrice;
    }

    public void setMeetPrice(Double meetPrice) {
        this.meetPrice = meetPrice;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName == null ? null : topicName.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Double getVoicePrice() {
        return voicePrice;
    }

    public void setVoicePrice(Double voicePrice) {
        this.voicePrice = voicePrice;
    }

    
    
	@Override
	public String toString() {
		return "Topic [id=" + id + ", dealNum=" + dealNum + ", meetPrice=" + meetPrice + ", topicName=" + topicName
				+ ", userId=" + userId + ", voicePrice=" + voicePrice + "]";
	}
    
}